<template>
  <div class="page-content">
    <el-container>
      <el-header v-if="title!==null&&title!==''">
        <h2 v-html="title" />
      </el-header>
      <el-main>
        <slot />
      </el-main>
      <el-footer>
        <slot name="footer" />
      </el-footer>
    </el-container>
  </div>
</template>

<script>
export default {
    name: 'PageContent',
    components: {

    },
    props: {
        title: { type: String, default: '' }
    },
    data() {
        return {

        }
    },
    computed: {

    },
    watch: {

    },
    created() {

    },
    beforeDestroy() {

    },
    mounted() {

    },
    methods: {

    }
}
</script>

<style scoped lang="scss">
.page-content{
    margin: 0 auto;
    max-width: 1000px;
}
.el-header{
    padding: 0px;
    text-align: center;

    h2 {
        font-weight:400!important;
    }
}
.el-main{
    padding: 0px;
    text-align: center;
}
.el-footer{
    padding: 0px;
    line-height: 60px;
    text-align: center;

    /deep/ .svg-icon{
        margin-right: 5px;
    }
}
</style>
